package com.google.code.sapwcrawler.urlfilter;
import java.util.*;
import java.net.*;

public class AndComposite implements URLFilter
{
	private List<URLFilter> list = new ArrayList<URLFilter>();
	
	public List<URLFilter> getList()
	{
		return list;
	}
	
	@Override
	public boolean isDownloadableURL(URL url)
	{
		for(URLFilter f : list)
			if(!f.isDownloadableURL(url))
				return false;
		return true;
	}
}
